﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="pager.ascx.cs" Inherits="App.controls.pager" %>
<table align="center" class="style1">
    <tr>
        <td>&nbsp; 第&nbsp;
            <s>
                <asp:Label ID="lblCurrentIndex" runat="server" ForeColor="Red">1</asp:Label></s>
            /
            <asp:Label ID="lblPageCount" runat="server" ForeColor="Red"></asp:Label>
            &nbsp;页&nbsp; &nbsp; 共&nbsp;<asp:Label ID="lblRecordCount" runat="server" ForeColor="Red">0</asp:Label>
            条记录 &nbsp;
            [<asp:LinkButton ID="btnFirst" runat="server" OnClick="btnFirst_Click">首 页</asp:LinkButton>]
            &nbsp;&nbsp;
            [<asp:LinkButton ID="btnPrev" runat="server" OnClick="btnPrev_Click">上一页</asp:LinkButton>]
            &nbsp;&nbsp;
            [<asp:LinkButton ID="btnNext" runat="server" OnClick="btnNext_Click">下一页</asp:LinkButton>]
            &nbsp;&nbsp;
            [<asp:LinkButton ID="btnLast" runat="server" OnClick="btnLast_Click">尾 页</asp:LinkButton>]
            &nbsp;转到<asp:TextBox ID="txtGoPage" runat="server" MaxLength="4" Width="36px" OnTextChanged="txtGoPage_TextChanged"
                AutoPostBack="true"></asp:TextBox>
            页&nbsp; 每页显示<asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="true"
                OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
                <asp:ListItem Text="5" Value="5" />
                <asp:ListItem Text="10" Value="10" Selected="True" />
                <asp:ListItem>15</asp:ListItem>
                <asp:ListItem>20</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
</table>
